# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=qbittorrent-cli
pkgver=2.0.0
pkgrel=3
pkgdesc="Cli to manage qBittorrent"
url="https://github.com/ludviglundgren/qbittorrent-cli"
arch="all"
license="MIT"
makedepends="go"
source="https://github.com/ludviglundgren/qbittorrent-cli/archive/v$pkgver/qbittorrent-cli-$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	make build
}

check() {
	go test ./...
}

package() {
	install -Dm755 bin/qbt "$pkgdir"/usr/bin/qbt
}

sha512sums="
7f88322d6f46cf2c48d0eb4ae50ff5ce39893b42e210f68fa7320671f5f50217430a0d1d90118d2cf0f417ce15a8b16cf1de7ad3c937d6118a9eee5e2fbbcebc  qbittorrent-cli-2.0.0.tar.gz
"
